package com.renchunlin.slidemenuactivity

import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.renchunlin.slidemenuactivity.view.SlideMenuView

class MainActivity : AppCompatActivity() {

    private lateinit var slide_item: SlideMenuView

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        slide_item = findViewById(R.id.slide_item)
        slide_item.setOnEditClickListener(object : SlideMenuView.OnEditClickListener {
            override fun onReadClick() {
                Log.i("chen", "onReadClick: ")
            }

            override fun onTopClick() {
                Log.i("chen", "onTopClick: ")
            }

            override fun onDeleteClick() {
                Log.i("chen", "onDeleteClick: ")
            }

        })
    }
}